@import '@/app/styles/variables';

.card {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  align-self: stretch;

  border-radius: 32px;
  border: 1px solid var(--simple-gray-day, #e1e1e1);
}

.image {
  position: relative;
  display: flex;
  width: 96px;
  aspect-ratio: 1;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  img {
    object-fit: cover;
  }
}

.title_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  align-self: stretch;
}

.info {
  all: unset;
  display: none;
  cursor: pointer;
  color: var(--simple-blue-day, #337cec);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 142.857% */
}

.title {
  color: var(--simple-night, #000);
  text-align: center;

  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px; /* 125% */
}

.description {
  position: relative;
  z-index: 0;

  color: var(--simple-night, #000);
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 150% */
}

.show_all {
  z-index: 1;
  display: none;
  color: var(--Simple-Blue-Day, #337cec);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;

  position: absolute;
  bottom: 0;
  right: 20px;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}

@include media(sm) {
  .show_all {
    display: flex;
  }
  .card {
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
  }
  .info {
    display: unset;
  }
  .title {
    font-size: 18px;
    line-height: 24px; /* 133.333% */
  }
  .description {
    font-size: 14px;
    line-height: 20px; /* 142.857% */
  }

  .hidden_content {
    display: block;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  .hidden_content:after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 70px;
    height: 30px;
    background: white;
    filter: blur(5px);
    z-index: 0;
  }
}
